package com.example.repository;

import com.example.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleRepository extends ElasticsearchRepository<Article, String> {

    public Page<Article> findByTitleOrContent(String title, String content, Pageable pageable);
}
